Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Implemented: added the functionality to the popover buttons in the mobile view of completed orders page (#244) #256

Conversation

amansinghbais
Copy link
Contributor

@amansinghbais amansinghbais commented Aug 25, 2023

Related Issues

Related Issue: #244

Short Description and Why It's Useful

  • Added the functionality to the popover buttons in the mobile view of the completed orders page in fulfillment app.
  • Added a new button for "Shipping label error" and added functionality to it in the popover present in mobile view of completed orders page.
  • Added a new disabled button for the shipped item in mobile view.

Screenshots of Visual Changes before/after (If There Are Any)

Before

Screenshot from 2023-08-25 12-39-02

After
Screenshot from 2023-09-15 10-52-52

IMPORTANT NOTICE - Remember to add changelog entry

Contribution and Currently Important Rules Acceptance

src/views/ShippingPopover.vue Outdated Show resolved Hide resolved
export default defineComponent({
name: "ShippingPopover",
components: {
IonContent,
IonItem,
IonList,
},
props: ['hasPackedShipments', 'order'],
methods: {
closeModal(eventName: string) {

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
closeModal(eventName: string) {
closeModal(selectedMethod: string) {


// Calls method which is clicked on the popover, functions name returns when popover dismiss.
if(typeof(this[selectedMethod]) === 'function') {
(this as any)[selectedMethod](order);

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Functions can be async also.

@ymaheshwari1
Copy link
Contributor

Closing as the UI of the app is getting changed and there is no immediate requirement for mobile view support.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants